package fr.aprr.geoloc.client;

import com.google.gwt.user.client.ui.IsWidget;
import com.mvp4g.client.annotation.Event;
import com.mvp4g.client.annotation.Events;
import com.mvp4g.client.annotation.Start;
import com.mvp4g.client.event.EventBus;

import fr.aprr.geoloc.client.presenser.RootPresenter;
import fr.aprr.geoloc.client.presenser.MenuPresenter;
import fr.aprr.geoloc.client.presenser.TabPresenser;
import fr.aprr.geoloc.client.presenser.VehiculePresenter;

@Events(startPresenter = RootPresenter.class)
public interface AppEventBus extends EventBus {

	@Event(handlers = RootPresenter.class)
	public void addRootTab(IsWidget widget);
	
	@Start
	@Event(handlers = {MenuPresenter.class,TabPresenser.class, VehiculePresenter.class})
	public void start();
	
	
	@Event(handlers = { VehiculePresenter.class })
	public void textChange(String input); 
	
	@Event(handlers = {TabPresenser.class})
	public void add2Tab(IsWidget view);
	
	@Event(handlers = {TabPresenser.class})
	public void addNewTab(String name);
}
